package com.yps.springbootconfigfile.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EmailController {
    //注入email配置信息实体类

    //测试方法
    @RequestMapping("/send")
    public Boolean send(){
        //收件人信箱
        String to = "@qq.com";
        //邮件标题
        String title = "";
        //邮件正文
        String content  = "";
        //发送邮件
        return true;
    }

}
